﻿<Window x:Class="ProgressWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Porting in progress" Height="600" Width="400" WindowStyle="ToolWindow">
    <Grid>
        <StackPanel Orientation="Vertical">
            <TextBlock Text="Converting ROM" Margin="3" HorizontalAlignment="Center"/>

            <GroupBox Header="Progress" Margin="3">
                <StackPanel Orientation="Vertical">
                    <Grid Name="StepsGrid">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="25"/>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition/>
                            <RowDefinition/>
                            <RowDefinition/>
                            <RowDefinition/>
                            <RowDefinition/>
                            <RowDefinition/>
                            <RowDefinition/>
                            <RowDefinition/>
                            <RowDefinition/>
                            <RowDefinition/>
                            <RowDefinition/>
                            <RowDefinition/>
                            <RowDefinition/>
                            <RowDefinition/>
                            <RowDefinition/>
                            <RowDefinition/>
                        </Grid.RowDefinitions>

                        <Image Width="20" Height="20" Grid.Row="0"/>
                        <TextBlock Grid.Row="0" Grid.Column="1" Text="Checking for Java"/>

                        <Image Width="20" Height="20" Grid.Row="1"/>
                        <TextBlock Grid.Row="1" Grid.Column="1" Text="Checking available space and write access"/>

                        <Image Width="20" Height="20" Grid.Row="2"/>
                        <TextBlock Grid.Row="2" Grid.Column="1" Text="Extracting N1 Rom"/>

                        <Image Width="20" Height="20" Grid.Row="3"/>
                        <TextBlock Grid.Row="3" Grid.Column="1" Text="Extracting Liquid Rom"/>

                        <Image Width="20" Height="20" Grid.Row="4"/>
                        <TextBlock Grid.Row="4" Grid.Column="1" Text="Copying tools to working directory"/>

                        <Image Width="20" Height="20" Grid.Row="5"/>
                        <TextBlock Grid.Row="5" Grid.Column="1" Text="Decompiling Liquid Services.jar"/>

                        <Image Width="20" Height="20" Grid.Row="6"/>
                        <TextBlock Grid.Row="6" Grid.Column="1" Text="Decompiling N1 Services.jar"/>

                        <Image Width="20" Height="20" Grid.Row="7"/>
                        <TextBlock Grid.Row="7" Grid.Column="1" Text="Patching proximity sensor"/>

                        <Image Width="20" Height="20" Grid.Row="8"/>
                        <TextBlock Grid.Row="8" Grid.Column="1" Text="Patching LEDs"/>

                        <Image Width="20" Height="20" Grid.Row="9"/>
                        <TextBlock Grid.Row="9" Grid.Column="1" Text="Patching USB Device link"/>

                        <Image Width="20" Height="20" Grid.Row="10"/>
                        <TextBlock Grid.Row="10" Grid.Column="1" Text="Rebuilding services.jar"/>

                        <Image Width="20" Height="20" Grid.Row="11"/>
                        <TextBlock Grid.Row="11" Grid.Column="1" Text="Replacing files"/>

                        <Image Width="20" Height="20" Grid.Row="12"/>
                        <TextBlock Grid.Row="12" Grid.Column="1" Text="Removing unused APKs"/>

                        <Image Width="20" Height="20" Grid.Row="13"/>
                        <TextBlock Grid.Row="13" Grid.Column="1" Text="Rebuilding ROM package"/>
                        
                        <Image Width="20" Height="20" Grid.Row="14"/>
                        <TextBlock Grid.Row="14" Grid.Column="1" Text="Updating build.prop and updater-script"/>

                        <Image Width="20" Height="20" Grid.Row="15"/>
                        <TextBlock Grid.Row="15" Grid.Column="1" Text="Signing ROM package"/>
                    </Grid>
                    
                    <ProgressBar Name="ProgBar" Height="20" Margin="3" Minimum="0"/>
                </StackPanel>
            </GroupBox>

            <GroupBox Header="Status" Margin="3" VerticalContentAlignment="Center">
                <TextBlock Name="StatuTextBox" Text="Wroking..." Margin="3" HorizontalAlignment="Center" TextWrapping="Wrap" Height="70" VerticalAlignment="Center"/>
            </GroupBox>

            <GroupBox Header="Actions" Margin="3">
                <StackPanel Orientation="Vertical">
                    <!--<Button Content="Abort" Margin="3"/>-->
                    <Button Name="OkButton" Content="OK" Margin="3" IsEnabled="False" Click="ButtonOk_Click"/>
                </StackPanel>
            </GroupBox>
        </StackPanel>
    </Grid>
</Window>
